projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8997e99
)
(substitute-env-vars): Don't quote argument to `rx';
author
Gerd Moellmann
<gerd@gnu.org>
Mon, 29 Oct 2001 09:10:48 +0000
(09:10 +0000)
committer
Gerd Moellmann
<gerd@gnu.org>
Mon, 29 Oct 2001 09:10:48 +0000
(09:10 +0000)
it's a macro.
lisp/env.el
patch
|
blob
|
history
diff --git
a/lisp/env.el
b/lisp/env.el
index 1da48e05ea999703d7b7fd5bc8e15ef533236131..e19f9f7f5da2633c930dfdbcc553b7c20557bd9d 100644
(file)
--- a/
lisp/env.el
+++ b/
lisp/env.el
@@
-59,9
+59,9
@@
the entire variable name in braces. Use `$$' to insert a single
dollar sign."
(let ((start 0))
(while (string-match
- (rx
'
(or (and "$" (submatch (1+ (in "a-zA-Z0-9_"))))
-
(and "${" (submatch (minimal-match (0+ anything))) "}")
-
"$$"))
+ (rx (or (and "$" (submatch (1+ (in "a-zA-Z0-9_"))))
+ (and "${" (submatch (minimal-match (0+ anything))) "}")
+ "$$"))
string start)
(cond ((match-beginning 1)
(let ((value (getenv (match-string 1 string))))